
//
//  FansModel.m
//  1243
//
//  Created by apple on 16/7/27.
//  Copyright © 2016年 1243. All rights reserved.
//

#import "FansModel.h"

@implementation FansModel

- (id)initWithDictionary:(NSDictionary *)dic {
    if (self = [super init]) {
        self.mUserName = [self stringWithNSObject:[dic objectForKey:@"UserName"]];
        self.mNumber = [self stringWithNSObject:[dic objectForKey:@"Number"]];
        self.mRealName = [self stringWithNSObject:[dic objectForKey:@"RealName"]];
        self.mCreateTime = [self stringWithNSObject:[dic objectForKey:@"CreateTime"]];
        self.mLastLoginTime = [self stringWithNSObject:[dic objectForKey:@"LastLoginTime"]];
        self.mStatus = [self stringWithNSObject:[dic objectForKey:@"Status"]];
        self.mCaozuo = [self stringWithNSObject:[dic objectForKey:@"V_Name"]];
    }
    return self;
}

-(NSString*) stringWithNSObject:(id)_it
{
    if ([_it isKindOfClass:[NSNull class]]) {
        return @"";
    }
    
    if ([_it isKindOfClass:[NSString class]]) {
        return _it;
    }
    
    NSNumber* _num = (NSNumber*)_it;
    return [_num stringValue];
    
}


@end
